package com.quanroon.ysq.lambda.simple;

import java.util.function.Consumer;
import java.util.function.Supplier;

/**
 * @author quanroong.ysq
 * @version 1.0.0
 * @description
 * @createtime 2021/12/4 1:37
 */
public class Demo1 {

    private static void printer(boolean isOk, Builder builder){
        if(isOk){
            System.out.println(builder.stringBuilder());
        }
    }

    public static void main(String[] args) {
        String a = "adf";
        String b = "dfa";

        printer(true, () -> a + b);

    }
}
